﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>宾果高校</title>
    <link rel="stylesheet" href="/static/css/swiper.min.css">
    <link rel="stylesheet" href="/static/css/index.css">
    <link rel="stylesheet" href="/static/css/sweetalert.min.css" />
</head>
<body>
    <div id="divHeader"></div>
    <div class="main" ng-app="myApp">

        <!--banner-->
        <div id="divCarousel"></div>

        <div class="container">
            <div style="padding-top:10px">

            </div>
            <div class="association clearfix">
                <div class="association-prepare">
                    <div class="title">
                        <div class="clearfix">
                            <h2>社团筹备</h2>
                            <a href="/search.html">more</a>
                        </div>
                    </div>
                    <div class="line"></div>
                    <div class="sponsor-main">
                        <ul class="clearfix" ng-controller="projectCtrl">
                            <li ng-repeat="x in names">
                                <a href="release-detail.html?id={{x.ProjectID}}">
                                    <img src="/static/images/sponsor1.jpg" alt="">
                                    <div class="sponsor-hide">
                                        <div>
                                            <p>{{x.ProjectName}}</p>
                                        </div>
                                        <div class="clearfxi"><span class="fl">{{x.CreatorName}}</span><span class="fr color-4c">{{x.CreateDate | date:'yyyy/MM/dd' }}</span></div>
                                        <div>
                                            <p>所需赞助金: ¥ {{x.Amount}}</p>
                                        </div>
                                        <div>
                                            <p class="color-4c">活动时间:{{x.StartDate | date:'yyyy/MM/dd'}}-{{x.EndDate | date:'yyyy/MM/dd' }}</p>
                                        </div>
                                    </div>
                                    <div class="clearfix">
                                        <h3 class="fl color-4c">{{x.ProjectName}}</h3><span class="fr main-color">赞助招募中</span>
                                    </div>
                                    <div class="clearfix"><span class="fl color-4c">{{x.CreatorName}}</span><span class="fr main-color wrapCollect">1770</span></div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--右边-->
                <div class="association-rightPart">
                    <!--登录框-->
                    <div id="divInfo"></div>

                    <!--赞助信息-->
                    <div ng-controller="spMessageCtrl" ng-include="'/wuc/message.html'"></div>

                </div>
            </div>

            <!--成功案例-->
            <div id="divCase"></div>
        </div>
    </div>
    <div id="divFooter"></div>
    <!--<div id="scrollTop" class="scrolltop">
        <p>回到顶部</p>
    </div>-->
    <script src="/static/js/jquery-2.1.1.min.js"></script>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/sha512.js"></script>
    <script src="/static/js/swiper.min.js"></script>
    <script src="/static/js/angular.min.js"></script>
    <script src="/static/js/sweetalert.min.js"></script>
    <script>

        var app = angular.module('myApp', []);

        $("#divCarousel").load("/wuc/carousel.html");
        $("#divHeader").load("/wuc/header.html");
        $("#divFooter").load("/wuc/footer.html");
        $("#divInfo").load("/wuc/info.html");
        $("#divCase").load("/wuc/case.html");

        common.CreateController({ name: 'projectCtrl', url: '/api/project/List?type=Student&number=12', objType: 'list', app: app });
        common.CreateController({ name: 'spMessageCtrl', url: '/api/project/ListSponsorMessage', objType: 'list', app: app });

        $(document).ready(function () {

            $('.contactus').on('click', function () {
                alert('此功能暂时没有开放，敬请期待！')
            })
            $("#nav-tab li a").on('click', function () {
                var self = $(this).parent();
                self.siblings().removeClass('current');
                self.addClass().addClass('current');
            });
            //登录框下拉
            $('.link-login').on('click', function (e) {
                $(this).toggleClass('on');
            });

        });
    </script>
</body>
</html>